package com.tedu.studentmanagement.pojo.dto;

import io.swagger.annotations.ApiModelProperty;
import lombok.Data;

import javax.validation.MessageInterpolator;
import javax.validation.constraints.NotNull;
import javax.validation.constraints.Size;

@Data
public class StudentRegDTO {
    @Size(min = 11,max = 11,message = "学生ID必须为11位")
    @ApiModelProperty(value = "学生ID",required = true,example = "20211106208")
    private String id;
    @ApiModelProperty(value = "学生姓名",required = true,example = "张三")
    private String name;
    @ApiModelProperty(value = "密码",required = true,example = "123456")
    private String password;
    @ApiModelProperty(value = "班级ID",required = true,example = "1")
    private String classId;
    @ApiModelProperty(value = "年级",required = true,example = "1年级")
    private String grade;
    @ApiModelProperty(value = "性别",required = true,example = "男")
    private String sex;
    @ApiModelProperty(value = "生日",required = true,example = "20020605")
    private String birth;
}
